<%--
  Created by IntelliJ IDEA.
  User: DELL
  Date: 2023/1/9
  Time: 15:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>条件搜索</title>
    <%
        /*解决request请求参数中出现的中文乱码*/
        request.setCharacterEncoding("UTF-8");
        /*获取搜索条件*/
        String searchName = request.getParameter("search");
        /*将获取的参数存储到request作用域中*/
        request.setAttribute("searchName",searchName);
        /*将获取的搜索条件传回给index.jsp*/
        request.getRequestDispatcher("index.jsp").forward(request,response);
    %>
</head>
<body>
<h2>搜索条件：</h2><%=searchName%>
</body>
</html>
